<div class="meets_index1">
    <h2><?php __('Cuộc họp sắp diễn ra:'); ?></h2>
    <table id="meets1" cellpadding="0" cellspacing="0">
        <tr>
            <th style="width: 250px;"><?php echo $this->paginator->sort('meet_name'); ?></th>
            <th><?php echo $this->paginator->sort('descriptione'); ?></th>
            <th style="width: 150px;"><?php echo $this->paginator->sort('time_start'); ?></th>
            <th style="width: 50px"><?php echo $this->paginator->sort('room_id'); ?></th>
        </tr>
        <?php
        $i = 0;
        foreach ($toans as $toan):
            $class = null;
            if ($i++ % 2 == 0) {
                $class = ' class="altrow"';
            }
            ?>
            <tr class="topicRow">
                <td>
                    <div class="topicIcon" >   <?php
        echo $this->Html->image('act_meeting_room.gif');
            ?>  </div>
                        <div>
                            <?php echo 'Tiêu đề:';
                            echo $this->Html->link($toan['Meet']['meet_name'], array('action' => 'view', $toan['Meet']['id'])); ?>&nbsp;
                            <br>
                            <?php echo 'Hình thức họp:&nbsp;';
                            echo $toan['Meet']['style_meet']; ?>
                            <br>
                            <?php echo'Số lượng:';
                            echo $toan['Meet']['quanlity']; ?> 
                            <br>
                        </div>
                    <div class="topicIcon" >   <?php
                    echo $this->Html->image('user.png');
                        ?>  </div>
                        <?php echo 'Người gửi: Nobody'; ?>
                    <br>
                        <br><div class="topicIcon" >   <?php
                    echo $this->Html->image('calender.gif');
                        ?>  </div>
                            <?php echo 'Ngày tạo:';
                            echo $toan['Meet']['time_register']; ?>
                    </div> 
                </td>

                <td>
                    <div class="topicDescription">
                        <?php echo $this->Html->link($toan['Meet']['descriptione'], array('controller' => 'topics', 'action' => 'view', $toan['Meet']['id'])); ?>&nbsp;
                    </div></td>
                <td style="width: 160px;font-size: 12px;">
                    <?php
                    echo 'Bắt đầu:';
                    echo $toan['Meet']['time_start'];

                    echo ' <br> Kết thúc:';
                    echo $toan['Meet']['time_stop'];
                    ?>

                </td>

                <td>
                    <?php echo $this->Html->link($toan['Room']['room_name'], array('controller' => 'rooms', 'action' => 'view', $toan['Room']['id'])); ?>
                </td>

            </tr>
            </tr>
        <?php endforeach; ?>
    </table>

    <div class="paging">
        <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class' => 'disable')); ?>
        | 	<?php echo $this->Paginator->numbers(); ?>
        |
        <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disable')); ?>
    </div>
</div>

<div class="meets_index2">
	<h2><?php __('Cuộc họp đã diễn ra : ');?></h2>
	<table id="meets1" cellpadding="0" cellspacing="0">
        <tr style="background: #003d4c;color: white;">
            <th style="width:250px;"><?php echo $this->paginator->sort('meet_name'); ?></th>
            <th><?php echo $this->paginator->sort('descriptione'); ?></th>
            <th style="width:150px;"><?php echo $this->paginator->sort('time_start'); ?></th>
            <th style="width:50px;"><?php echo $this->paginator->sort('room_id'); ?></th>
        </tr>
        <?php
        $i = 0;
        foreach ($chiens as $chien):
            $class = null;
            if ($i++ % 2 == 0) {
                $class = ' class="altrow"';
            }
            ?>
            <tr class="topicRow">
                <td>
                    <div class="topicIcon" >   <?php
        echo $this->Html->image('act_meeting_room.gif');
            ?>  </div>
                        <div>
                            <?php echo 'Tiêu đề:';
                            echo $this->Html->link($chien['Meet']['meet_name'], array('action' => 'view', $chien['Meet']['id'])); ?>&nbsp;
                            <br>
                            <?php echo 'Hình thức họp:&nbsp;';
                            echo $chien['Meet']['style_meet']; ?>
                            <br>
                            <?php echo'Số lượng:';
                            echo $chien['Meet']['quanlity']; ?> 
                            <br>
                        </div>
                    <div class="topicIcon" >   <?php
                    echo $this->Html->image('user.png');
                        ?>  </div>
                        <?php echo 'Người gửi: Nobody'; ?>
                    <br>
                        <br><div class="topicIcon" >   <?php
                    echo $this->Html->image('calender.gif');
                        ?>  </div>
                            <?php echo 'Ngày tạo:';
                            echo $chien['Meet']['time_register']; ?>
                    </div> 
                </td>

                <td>
                    <div class="topicDescription">
                        <?php echo $this->Html->link($chien['Meet']['descriptione'], array('controller' => 'topics', 'action' => 'view', $chien['Meet']['id'])); ?>&nbsp;
                    </div></td>
                <td style="width: 160px;font-size: 12px;">
                    <?php
                    echo 'Bắt đầu:';
                    echo $chien['Meet']['time_start'];

                    echo ' <br> Kết thúc:';
                    echo $chien['Meet']['time_stop'];
                    ?>

                </td>

                <td>
                    <?php echo $this->Html->link($chien['Room']['room_name'], array('controller' => 'rooms', 'action' => 'view', $chien['Room']['id'])); ?>
                </td>

            </tr>
            </tr>
        <?php endforeach; ?>
    </table>
	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
